import request from '@/utils/request'

export function list(token,data){
  return request({
    url: 'customer/employee/get_select',
    method: 'post',
    params: {token},
    data
  })
}

// 添加用户(customer)
export function add(token,data){
  return request({
    url: 'customer/employee/add',
    method: 'post',
    params: {token},
    data
  })
}

// 编辑用户(customer)
export function edit(token,data){
  return request({
    url: 'customer/employee/edit',
    method: 'post',
    params: {token},
    data
  })
}

// 删除用户(customer)
export function del(token, customer_store_employee_id) {
  return request({
    url: 'customer/employee/delete',
    method: 'post',
    params: {token},
    data: {customer_store_employee_id}
  })
}

export function modify(token,customer_store_employee_id,is_display_button){
  return request({
    url:'customer/employee/update_button',
    method:'post',
    params:{token : token,customer_store_employee_id : customer_store_employee_id,is_display_button : is_display_button},
  })
}
